package com.zx.oa.service.morningResult;

import com.zx.oa.dao.morningResult.MorningResultDao;
import com.zx.oa.dao.morningResult.MorningResultDaoImpl;
import com.zx.oa.entity.Result;
import com.zx.oa.entity.WeekResult;

import java.util.List;

public class MorningResultServiceImpl implements MorningResultService{
    MorningResultDao morningResultDao=new MorningResultDaoImpl();

    @Override
    public List<WeekResult> getMorningResultList(String major, String className, String studentName, String date, String result, int currentPageNo, int pageSize) {
        return morningResultDao.getMorningResultList(major,className,studentName,date,result,currentPageNo,pageSize);
    }

    @Override
    public boolean deleteResult(int id) {
        return morningResultDao.deleteResult(id);
    }

    @Override
    public List<WeekResult> getMonthResultList(String emajor, String eclassname, String month) {
        return morningResultDao.getMonthResultList(emajor,eclassname,month);
    }

    @Override
    public Result getMorningResul(String id) {
        return morningResultDao.getMorningResul(id);
    }

    @Override
    public boolean modifyResult(int id, String date, String result) {
        return morningResultDao.modifyResult(id,date,result);
    }
}
